<!--
 * @Author: 杨晓凡 154408238@qq.com
 * @Date: 2023-05-17 14:05:43
 * @LastEditors: 杨晓凡 154408238@qq.com
 * @LastEditTime: 2023-05-17 17:04:12
 * @FilePath: \vue_template\src\components\ol\OlContainer.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div id="map" />
</template>

<script>
import OlMap from './olMap.js'
export default {
  name: 'OlContainer',
  data() {
    return {}
  },
  computed: {},
  created() { },
  mounted() {
    // this.initOL()
    this.creatOlMap()
  },
  methods: {
    creatOlMap() {
      const olMap = new OlMap('map', [119.7286, 32.0445], 'img')
      window.olMap = olMap
    }

  }
}

</script>
<style scoped lang='scss'>
</style>
